/**
 * @(#) TableInformation.java
 *
 * @author lihg
 * @version V1.0 2013-11-11
 *
 */

package cn.com.dshome.database.jdbc.pojo;

import java.util.Set;

/**
 * 
 * Purpose:表信息
 * 
 * @author lihg
 * @see
 * @since
 */

public class TableInformation extends DBBaseInformation {

	private static final long serialVersionUID = 2748785900211513260L;

	//表类型Table、View
	private String type ;

	private String catalog ;

	private String schema ;

	//表或视图中的字段
	private Set<ColumnInformation> columnSet ;

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the columnSet
	 */
	public Set<ColumnInformation> getColumnSet() {
		return columnSet;
	}

	/**
	 * @param columnSet the columnSet to set
	 */
	public void setColumnSet(Set<ColumnInformation> columnSet) {
		this.columnSet = columnSet;
	}

	/**
	 * @return the catalog
	 */
	public String getCatalog() {
		return catalog;
	}

	/**
	 * @param catalog the catalog to set
	 */
	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}

	/**
	 * @return the schema
	 */
	public String getSchema() {
		return schema;
	}

	/**
	 * @param schema the schema to set
	 */
	public void setSchema(String schema) {
		this.schema = schema;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "TableInformation [name=" + getName() +  ",remark=" + getRemark() + ",catalog=" + catalog + ",schema=" + schema + ",type=" + type + "]";
	}
}


/**
 * Revision history
 * -------------------------------------------------------------------------
 * 
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2013-11-11下午1:37:16 lihg 创建版本
 */